@import "tailwindcss";

@theme {
  --font-sans: var(--font-geist-sans);
  --font-mono: var(--font-geist-mono);
}

:root {
  --background: #ffffff;
  --foreground: #171717;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

html,
body {
  background-color: transparent !important;
}

body {
  color: var(--foreground);
  background: var(--background);
  font-family: Arial, Helvetica, sans-serif;
}

/* 样式：秋叶飘落 */
.leaf-fall-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 10;
}

.leaf-wrapper {
  position: absolute;
  animation: leaf-fall 12s ease-in-out infinite;
}

.leaf {
  width: 20px;
  height: 20px;
  background-color: #d8cee3;
  border-radius: 50% 30% 40% 60% / 60% 40% 30% 50%;
  opacity: 0.7;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1));
  animation: leaf-sway 3s ease-in-out infinite alternate;
}

/* 非匀速的自然下落动画 */
@keyframes leaf-fall {
  0% {
    top: -10%;
    opacity: 0;
    transform: translateX(0px) rotate(0deg);
  }
  30% {
    opacity: 0.8;
  }
  50% {
    transform: translateX(30px) rotate(10deg);
  }
  70% {
    transform: translateX(-20px) rotate(-12deg);
  }
  100% {
    top: 110%;
    opacity: 0;
    transform: translateX(0px) rotate(0deg);
  }
}

/* 左右轻摆动画 */
@keyframes leaf-sway {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(15px) rotate(12deg);
  }
  100% {
    transform: translateX(-15px) rotate(-8deg);
  }
}
